<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>购货入库 - 物流管理系统</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<style media="all" type="text/css">@import "../../style/all.css";</style>
	<script type="text/javascript" src='../../script/common.js'></script>
	<script>
         function checkLogin(){
		     var num=document.getElementById("textNum").value;
			 if(num=="" || num==null){
			    alert("购货单号不能为空!");
			    return false;
			 }
			
		     return true;			
		 }
		 function checkIn(obj){
		      var numIn=document.getElementById(obj).value;
			  if(numIn=="" || numIn==null){
				 alert("实际入库数量不能为空");
				 return false;
			  }
			  else if(numIn==0){
				 alert("实际入库数量不能0");
				 return false;
			  
			  }
			  else if(isNaN(numIn)){
			     alert("实际入库数量不是数字");
				 return false;
			  }
				 window.location='in_goods.html';
				 return true;
		 }
	</script>
</head>
<body style="background: none">
	<div class="top-bar">
		<h1>购货入库</h1>
		<div class="breadcrumbs">
			<div class="button-bar">
				<input type="button" name="help" value="帮助" class="button"  onclick="help('物流管理系统')"/>
				<input type="button" name="select" value="查询" class="button" onclick="return checkLogin()"/>
			</div>
			<a href="../../index.html" target="_top"  >首页</a> /
			<a href="../index.html" target="_top"  >库房管理</a> 
		</div>
	</div>
    <form name="frmSelect" method="post" onsubmit="">
		<div class="select-bar">
		  <table class="select-table">
			<tr>
				<th>购货单号</th>
				<td><input type="text"  id="textNum" class="text" size="15"/><span style="color:red">*</span></td>
				<th></th>
				<td></td>
				<th></th>
				<td></td>
			</tr>
		  </table>
		</div>
	</form>
	<form name="frmIn" method="post" onsubmit="return checkIn()">
		<div class="table">
			<table class="listing form" cellpadding="0" cellspacing="0">
					<tr>
						<th class="first">购货单号</th>
						<th>商品编号</th>
						<th>商品名称</th>
						<th>应入库数量</th>
						<th>实际入库数量</th>
						<th>操作</th>
					</tr>
					<tr>				   
					   <td class="first" >5211</td>
					   <td>SN9696</td>
					   <td>索尼数码相机AX001</td>
					   <td>50</td>
					   <td><input type="text" value="50" size='8' id="numIn"/></td>
					   <td><img title="入库" onclick="return checkIn('numIn');" src="../../style/img/Fugue_1031.png"/></td>
					</tr>
					<tr>				   
					   <td class="first" >5212</td>
					   <td>SN9696</td>
					   <td>索尼数码相机MA1001</td>
					   <td>30</td>
					   <td><input type="text" value="50" size='8' id="numIn1"/></td>
					   <td><img title="入库" onclick="return checkIn('numIn');" src="../../style/img/Fugue_1031.png"/></td>
					</tr>
					<tr>				   
					   <td class="first" >5214</td>
					   <td>SN9696</td>
					   <td>索尼数码相机MA1001</td>
					   <td>30</td>
					   <td><input type="text" value="50" size='8' id="numIn2"/></td>
					   <td><img title="入库" onclick="return checkIn('numIn');" src="../../style/img/Fugue_1031.png"/></td>
					</tr>
					<tr>				   
					   <td class="first" >5215</td>
					   <td>SN9696</td>
					   <td>索尼数码相机MA1001</td>
					   <td>30</td>
					   <td><input type="text" value="50" size='8' id="numIn3"/></td>
					   <td><img title="入库" onclick="return checkIn('numIn');" src="../../style/img/Fugue_1031.png"/></td>
					</tr>
					<tr>				   
					   <td class="first" >5216</td>
					   <td>SN9696</td>
					   <td>索尼数码相机MA1001</td>
					   <td>30</td>
					   <td><input type="text" value="50" size='8' id="numIn4"/></td>
					   <td><img title="入库" onclick="return checkIn('numIn');" src="../../style/img/Fugue_1031.png"/></td>
					</tr>
			</table>
		</form>
		<div class="pager">
			共59条记录 每页<input type="text" class="text" size="2" value="10"/>条
			第1页/共5页
			<a href="#">第一页</a>
			<a href="#">上一页</a>
			<a href="#">下一页</a>
			<a href="#">最后一页</a>
			转到<input type="text" class="text" size="1" value="1"/>页
			<input type="button" class="button" onclick="" value="GO"/>
        </div>
    </div>
	</div>
</body>
</html>
